ExportHelper.exportCSV Method

Export current view to CSV.
 
 
Static This method is static.

Parameters

csvOptions

Type: Object
(optional) An object literal with the default values for the following properties:                        
     appendDateToFileName    [type: bool]                                        - Value indicating whether or not the date should be appended to the export filename.
     overrideFileName        [type: String]                                      - The filename to be used for the exported file rather than the system generated name.
     openOnCompletion        [type: bool]                                        - Value indicating whether or not the export file should be opened/downloaded when ready.
     enableOverlay           [type: bool]                                        - Value indicating whether or not an overlay should be shown while export is taking place.            
     adapterId               [type: String]                                      - The ID of the adapter to be exported to CSV.
     view                    [type: dundas.entities.View, optional]              - View to export.  If not specified the current parent view will be exported.
     baseViewService         [type: dundas.views.BaseViewViewService, optional]  - Required only when exporting a view that's inside a SubCanvasViewContainer.
 

Optional: True

Return Value


Type: jQuery.Promise
Value: String
A promise object that is resolved when the call is complete. If successful, a String is returned with the URL of the export.